﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVCBug.Models
{
    public class StateRepositry
    {
        private MVCBugDataContext _DataContext;
        public StateRepositry(MVCBugDataContext datCont)
        {
            _DataContext = datCont;
        }
        public IEnumerable<States> GetStates()
        { return _DataContext.States.OrderBy(t => t.Title); }
    }

}